package com.example.shushiyunsst.fragment.main.home.child.new_sale.chlid.bean;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

public class GroupBookingLuckyPopBean {


    /**
     * goodsName : 俗世堂海参牡蛎复合肽
     * tokenNums : 0
     * winNickName : 话语预感
     * winAccount : 156****5411
     * backDesc : 返还70SST+1.40SST鼓励金
     * gbLogList : [{"gblId":45,"gbid":1,"uid":3,"txPrice":70,"txStatus":1,"createTime":"2020-11-14 15:08:17","account":"151****9579","nickName":"张大仙昵称"}]
     * lastDate : 2020-11-14 15:08:17
     */

    @JSONField(name = "goodsName")
    private String goodsName;

    @JSONField(name = "tokenNums")
    private int tokenNums;

    @JSONField(name = "winNickName")
    private String winNickName;

    @JSONField(name = "winAccount")
    private String winAccount;

    @JSONField(name = "backDesc")
    private String backDesc;

    @JSONField(name = "lastDate")
    private String lastDate;

    @JSONField(name = "gbLogList")
    private List<GbLogListBean> gbLogList;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getTokenNums() {
        return tokenNums;
    }

    public void setTokenNums(Integer tokenNums) {
        this.tokenNums = tokenNums;
    }

    public String getWinNickName() {
        return winNickName;
    }

    public void setWinNickName(String winNickName) {
        this.winNickName = winNickName;
    }

    public String getWinAccount() {
        return winAccount;
    }

    public void setWinAccount(String winAccount) {
        this.winAccount = winAccount;
    }

    public String getBackDesc() {
        return backDesc;
    }

    public void setBackDesc(String backDesc) {
        this.backDesc = backDesc;
    }

    public String getLastDate() {
        return lastDate;
    }

    public void setLastDate(String lastDate) {
        this.lastDate = lastDate;
    }

    public List<GbLogListBean> getGbLogList() {
        if (gbLogList == null) return new ArrayList<>();
        return gbLogList;
    }

    public void setGbLogList(List<GbLogListBean> gbLogList) {
        this.gbLogList = gbLogList;
    }

    public static class GbLogListBean {
        /**
         * gblId : 45
         * gbid : 1
         * uid : 3
         * txPrice : 70
         * txStatus : 1
         * createTime : 2020-11-14 15:08:17
         * account : 151****9579
         * nickName : 张大仙昵称
         */

        @JSONField(name = "gblId")
        private int gblId;

        @JSONField(name = "gbid")
        private int gbid;

        @JSONField(name = "uid")
        private int uid;

        @JSONField(name = "txPrice")
        private double txPrice;

        @JSONField(name = "txStatus")
        private int txStatus;

        @JSONField(name = "createTime")
        private String createTime;

        @JSONField(name = "account")
        private String account;

        @JSONField(name = "nickName")
        private String nickName;

        public Integer getGblId() {
            return gblId;
        }

        public void setGblId(Integer gblId) {
            this.gblId = gblId;
        }

        public Integer getGbid() {
            return gbid;
        }

        public void setGbid(Integer gbid) {
            this.gbid = gbid;
        }

        public Integer getUid() {
            return uid;
        }

        public void setUid(Integer uid) {
            this.uid = uid;
        }

        public double getTxPrice() {
            return txPrice;
        }

        public void setTxPrice(Integer txPrice) {
            this.txPrice = txPrice;
        }

        public Integer getTxStatus() {
            return txStatus;
        }

        public void setTxStatus(Integer txStatus) {
            this.txStatus = txStatus;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getNickName() {
            if (TextUtils.isEmpty(nickName)) return "";
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }
    }
}
